


//
//  ShopModel.m
//  BusinessMarket
//
//  Created by Michael Li on 2018/11/23.
//  Copyright © 2018年 Michael Li. All rights reserved.
//

#import "ShopModel.h"
#import "ShopSubModel.h"
@implementation ShopModel
-(instancetype)initWithDictionary:(NSDictionary *)dict
{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
        NSMutableArray *mutaArray = [NSMutableArray array];
        NSArray *temp = [dict  objectForKey:@"data"];
        for (NSDictionary *dict in temp) {
            ShopSubModel *model = [ShopSubModel mj_objectWithKeyValues:dict];
            [mutaArray addObject:model];
        }
        self.data = mutaArray;
        
    }
    return self;
}
+(instancetype)shopModelWithDictionary:(NSDictionary*)dict
{
    return [[self alloc]initWithDictionary:dict];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
@end
